<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>My Project: cCameraUVN类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>变量</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a>  </div>
  <div class="headertitle">
<div class="title">cCameraUVN类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>摄像机类。 <a class="el" href="classc_camera_u_v_n.html#add0b3df8c8545926d18007432f4e8021">computeV2()</a>cTerrain函数，而cTerrain又依赖cGround函数。因此camera依赖cGround；  
 <a href="classc_camera_u_v_n.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="camera_8h_source.html">camera.h</a>&gt;</code></p>

<p><a href="classc_camera_u_v_n-members.html">所有成员列表.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a50ddfab2d0741056e6aee49b6a4be6f4"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>camera_type</b> { <b>LAND</b>, 
<b>AIR</b>
 }</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a15a38e1106e6a3c7b0e89c7db477cc47"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15a38e1106e6a3c7b0e89c7db477cc47"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>cCameraUVN</b> (camera_type type=LAND)</td></tr>
<tr class="memitem:a6251c42398d86ab2858caf440288703d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6251c42398d86ab2858caf440288703d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (int width=800, int height=600, D3DXVECTOR3 pos=D3DXVECTOR3(0, 0, 0), D3DXVECTOR3 lookat=D3DXVECTOR3(0, 0, 1), D3DXVECTOR3 up=D3DXVECTOR3(0, 1, 0), float fov=D3DX_PI/4, float zn=0.01f, float zf=5000.0f)</td></tr>
<tr class="memitem:a19d3ed6f89444ccf38d0bdacacf65ed8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19d3ed6f89444ccf38d0bdacacf65ed8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>compute</b> ()</td></tr>
<tr class="memitem:a614b4fb80a2d89870c936afe4ebde325"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a614b4fb80a2d89870c936afe4ebde325"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classc_camera_u_v_n.html#a614b4fb80a2d89870c936afe4ebde325">reset</a> ()</td></tr>
<tr class="memdesc:a614b4fb80a2d89870c936afe4ebde325"><td class="mdescLeft">&#160;</td><td class="mdescRight">内部调用init()。 <br/></td></tr>
<tr class="memitem:ade626fa6654937998634fca95bf6a6ea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade626fa6654937998634fca95bf6a6ea"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>rotate_x_axis</b> (float angle)</td></tr>
<tr class="memitem:ad2c6720b5fd00ec47b6bc6a2b68059bd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad2c6720b5fd00ec47b6bc6a2b68059bd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>rotate_y_axis</b> (float angle)</td></tr>
<tr class="memitem:ad72539d9e5ea70884b4bbb6e00cbed21"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad72539d9e5ea70884b4bbb6e00cbed21"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>rotate_z_axis</b> (float angle)</td></tr>
<tr class="memitem:aab6fb6dc9490bfcef1edb034fd865b24"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab6fb6dc9490bfcef1edb034fd865b24"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>walk_x_axis</b> (float units)</td></tr>
<tr class="memitem:a8612839850d695bafb56726a623aeb65"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8612839850d695bafb56726a623aeb65"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>walk_y_axis</b> (float units)</td></tr>
<tr class="memitem:a3ccb08226914486ea8681eb055b683d7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ccb08226914486ea8681eb055b683d7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>walk_z_axis</b> (float units)</td></tr>
<tr class="memitem:a187d5dee1c5fddb1ab6c78a10e939bf7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a187d5dee1c5fddb1ab6c78a10e939bf7"></a>
D3DXMATRIX &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getViewMatrix</b> ()</td></tr>
<tr class="memitem:a207c5cc2d7e2d34e0e6d55cee23b1482"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a207c5cc2d7e2d34e0e6d55cee23b1482"></a>
D3DXMATRIX &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getProjMatrix</b> ()</td></tr>
<tr class="memitem:a46f3f53812fa10c6c2b8c3cd48ad4d03"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46f3f53812fa10c6c2b8c3cd48ad4d03"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>getViewPort</b> (D3DVIEWPORT9 &amp;t)</td></tr>
<tr class="memitem:a15373f54082964ea8baaca3363b02bf6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15373f54082964ea8baaca3363b02bf6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setPos</b> (D3DXVECTOR3 t)</td></tr>
<tr class="memitem:a5fd1afe76467afb77dbd0624af1dd5d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5fd1afe76467afb77dbd0624af1dd5d4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>getPos</b> (D3DXVECTOR3 &amp;t)</td></tr>
<tr class="memitem:a5ff4b0b892726ede08d242d48ea9498d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ff4b0b892726ede08d242d48ea9498d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>getDeep</b> (D3DXVECTOR3 &amp;t)</td></tr>
<tr class="memitem:a4c730e764147f04dbb7877c0be4548d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c730e764147f04dbb7877c0be4548d9"></a>
D3DXVECTOR3 &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>get_pos</b> ()</td></tr>
<tr class="memitem:a7fe632d434a24a560f07cea38f61d048"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7fe632d434a24a560f07cea38f61d048"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>computeV1</b> ()</td></tr>
<tr class="memitem:acfa7bac892981f4b63726bb8a3844aca"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acfa7bac892981f4b63726bb8a3844aca"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setLookat</b> (D3DXVECTOR3 t)</td></tr>
<tr class="memitem:add0b3df8c8545926d18007432f4e8021"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classc_camera_u_v_n.html#add0b3df8c8545926d18007432f4e8021">computeV2</a> (<a class="el" href="classc_input_controller.html">cInputController</a> *pInput, float delt_time, <a class="el" href="classc_terrain.html">cTerrain</a> *pTerrain, float OffsetY)</td></tr>
<tr class="memitem:a8f98cf977c25d65c169a91b055302c61"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f98cf977c25d65c169a91b055302c61"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classc_camera_u_v_n.html#a8f98cf977c25d65c169a91b055302c61">setSpeed</a> (float s)</td></tr>
<tr class="memdesc:a8f98cf977c25d65c169a91b055302c61"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置摄像机移动的速度。 <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>详细描述</h2>
<div class="textblock"><p>摄像机类。 <a class="el" href="classc_camera_u_v_n.html#add0b3df8c8545926d18007432f4e8021">computeV2()</a>cTerrain函数，而cTerrain又依赖cGround函数。因此camera依赖cGround； </p>
</div><hr/><h2>成员函数说明</h2>
<a class="anchor" id="add0b3df8c8545926d18007432f4e8021"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cCameraUVN::computeV2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classc_input_controller.html">cInputController</a> *&#160;</td>
          <td class="paramname"><em>pInput</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>delt_time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classc_terrain.html">cTerrain</a> *&#160;</td>
          <td class="paramname"><em>pTerrain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>OffsetY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<ul>
<li></li>
</ul>
<p>1* </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>E:/!代码工厂/3D引擎/<a class="el" href="camera_8h_source.html">camera.h</a></li>
<li>E:/!代码工厂/3D引擎/camera.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2012年 五月 27日 星期日 22:27:18 , 为 My Project使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1
</small></address>
</body>
</html>
